namespace Net.Share
{
    /// <summary>
    /// 同步序列化 --直接调用序列化
    /// </summary>
    public readonly struct SyncSerialize
    {
        public readonly bool IsOn;
        public static readonly SyncSerialize True = new(true);
        public static readonly SyncSerialize False = new(false);

        /// <summary>
        /// 同步序列化 --直接调用序列化
        /// </summary>
        /// <param name="isOn">是否立即调用序列化</param>
        public SyncSerialize(bool isOn)
        {
            IsOn = isOn;
        }
    }
}